package com.gd.iot.energy.dao.superadmin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gd.iot.energy.po.superadmin.PermissionPO;
import com.gd.iot.energy.pojo.superadmin.dto.PermissionDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionPOMapper extends BaseMapper<PermissionPO> {


   List<PermissionDTO> getPermissionsByRoleId(@Param("roleIds") List<Integer> roleIds,
                                              @Param("energyType") Integer energyType);

   List<PermissionPO> getPermissionsByAdminId(@Param("adminId") Long adminId,
                                              @Param("energyType") Integer energyType);
}